.class Lcom/openfeint/internal/OpenFeintInternal$9;
.super Lcom/openfeint/internal/request/JSONRequest;
.source "OpenFeintInternal.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/openfeint/internal/OpenFeintInternal;->uploadFile(Ljava/lang/String;Lcom/openfeint/internal/request/multipart/PartSource;Ljava/lang/String;Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/openfeint/internal/OpenFeintInternal;

.field private final synthetic val$contentType:Ljava/lang/String;

.field private final synthetic val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

.field private final synthetic val$partSource:Lcom/openfeint/internal/request/multipart/PartSource;

.field private final synthetic val$xpApiPath:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/openfeint/internal/OpenFeintInternal;Ljava/lang/String;Lcom/openfeint/internal/request/multipart/PartSource;Ljava/lang/String;Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->this$0:Lcom/openfeint/internal/OpenFeintInternal;

    iput-object p2, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$xpApiPath:Ljava/lang/String;

    iput-object p3, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$partSource:Lcom/openfeint/internal/request/multipart/PartSource;

    iput-object p4, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$contentType:Ljava/lang/String;

    iput-object p5, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

    .line 711
    invoke-direct {p0}, Lcom/openfeint/internal/request/JSONRequest;-><init>()V

    return-void
.end method


# virtual methods
.method public method()Ljava/lang/String;
    .locals 1

    .prologue
    .line 713
    const-string v0, "POST"

    return-object v0
.end method

.method public onFailure(Ljava/lang/String;)V
    .locals 3
    .parameter "reason"

    .prologue
    .line 728
    iget-object v0, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

    const-string v1, ""

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;->fileUploadedTo(Ljava/lang/String;Z)V

    .line 729
    :cond_0
    return-void
.end method

.method public onSuccess(Ljava/lang/Object;)V
    .locals 5
    .parameter "responseBody"

    .prologue
    .line 716
    move-object v0, p1

    check-cast v0, Lcom/openfeint/internal/resource/BlobUploadParameters;

    move-object v2, v0

    .line 717
    .local v2, params:Lcom/openfeint/internal/resource/BlobUploadParameters;
    new-instance v1, Lcom/openfeint/internal/request/BlobPostRequest;

    iget-object v3, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$partSource:Lcom/openfeint/internal/request/multipart/PartSource;

    iget-object v4, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$contentType:Ljava/lang/String;

    invoke-direct {v1, v2, v3, v4}, Lcom/openfeint/internal/request/BlobPostRequest;-><init>(Lcom/openfeint/internal/resource/BlobUploadParameters;Lcom/openfeint/internal/request/multipart/PartSource;Ljava/lang/String;)V

    .line 718
    .local v1, bp:Lcom/openfeint/internal/request/BlobPostRequest;
    iget-object v3, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

    if-eqz v3, :cond_0

    .line 719
    new-instance v3, Lcom/openfeint/internal/OpenFeintInternal$9$1;

    iget-object v4, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$delegate:Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;

    invoke-direct {v3, p0, v4, v2}, Lcom/openfeint/internal/OpenFeintInternal$9$1;-><init>(Lcom/openfeint/internal/OpenFeintInternal$9;Lcom/openfeint/internal/OpenFeintInternal$IUploadDelegate;Lcom/openfeint/internal/resource/BlobUploadParameters;)V

    invoke-virtual {v1, v3}, Lcom/openfeint/internal/request/BlobPostRequest;->setDelegate(Lcom/openfeint/internal/request/IRawRequestDelegate;)V

    .line 725
    :cond_0
    iget-object v3, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->this$0:Lcom/openfeint/internal/OpenFeintInternal;

    #calls: Lcom/openfeint/internal/OpenFeintInternal;->_makeRequest(Lcom/openfeint/internal/request/BaseRequest;)V
    invoke-static {v3, v1}, Lcom/openfeint/internal/OpenFeintInternal;->access$13(Lcom/openfeint/internal/OpenFeintInternal;Lcom/openfeint/internal/request/BaseRequest;)V

    .line 726
    return-void
.end method

.method public path()Ljava/lang/String;
    .locals 1

    .prologue
    .line 714
    iget-object v0, p0, Lcom/openfeint/internal/OpenFeintInternal$9;->val$xpApiPath:Ljava/lang/String;

    return-object v0
.end method

.method public wantsLogin()Z
    .locals 1

    .prologue
    .line 712
    const/4 v0, 0x1

    return v0
.end method
